HAL RAMECC state and error functions migration

This section provides information about the HAL RAMECC state and error functions migration.

HAL RAMECC state function

HAL1

HAL2

HAL_RAMECC_GetState(const RAMECC_HandleTypeDef *hramecc)
Removed, as the state machine is removed in HAL2

Related concept: Revised and optimized HAL state machine


HAL RAMECC get error functions

HAL1

HAL2

HAL_RAMECC_GetError(const RAMECC_HandleTypeDef *hramecc)

Removed , since the HAL_RAMECC_StateTypeDef state definitions have been removed.

HAL_RAMECC_GetRAMECCError(const RAMECC_HandleTypeDef *hramecc)

Use HAL_RAMECC_GetInfo() instead, then check the field type of the hal_ramecc_ecc_info_t structure.

Related concept: Revised and optimized HAL error management